package org.boge.sharpdoc.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.boge.sharpdoc.bean.Banner;

import java.util.List;

@Mapper
public interface BannerDao {
    public Integer addItem(@Param("docid") Integer docid, @Param("picurl") String picurl, @Param("adminid") Integer adminid);

    public List<Banner> findUseful();

    public Integer updateStatus(@Param("bannerid") Integer bannerid, @Param("status") String status);

    public List<Banner> findAll();
}